//
//  WmcMediaShareResourceModel.swift
//  YPWatermarkCamera
//
//  Created by 周诗松 on 2022/9/16.
//

import Foundation

struct WmcMediaShareResourceModel: YPNetworkJsonProtocol {
    
    /// 标题
    var title: String = ""
    
    /// 分享人名
    var name: String = ""
    
    /// 分享人头像
    var avatar: String = ""
    
    /// 图片列表
    var photos: PhotoDataModel = PhotoDataModel()
    
    /// 过期时间
    var expireDate: String = ""
    
    
    struct PhotoDataModel {
        var data: [PhotoListModel] = []
    }
    
    struct PhotoListModel {
        var id: Int = 0
        
        /// 资源ID
        var resourceId: String = ""
        
        /// 资源地址
        var url: String = ""
        
        
        /// 资源类型，0:图片，1:视频
        var resourceType: Int = 0
        
        /// 水印类型id
        var wmId: Int = 0
        
        /// 城市
        var city: String = ""
        
        /// 地址
        var address: String = ""
        
        /// 创建时间
        var createdAt: String = ""
        
        /// 拍摄时间
        var takeTime: String = ""
        
        /// 纬度
        var lat: Double = 0.0
        
        /// 经度
        var lon: Double = 0.0
        
        /// 视频时常（单位秒）
        var videoTime: Double = 0.0
    }
}
